libxc: avoid clobbering errno in xc_domain_pod_target()
authorJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:20:15 +0000 (10:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:20:15 +0000 (10:20 +0100)
commit78688ffa7e86e7cdb57d383e213fd822aaaa5438
tree04a3fed4c151ce0fa73f1b927e12ac69e68e7e10
parent7cd0a787bba5b9c0073cceb1884064393ab719b9
libxc: avoid clobbering errno in xc_domain_pod_target()

do_memory_op() supplies return value and has "errno" set the usual way.
Don't overwrite "errno" with 1 (aka EPERM on at least Linux). There's
also no reason to overwrite "err".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
tools/libs/ctrl/xc_domain.c